export type RoleType = '' | '*' | 'admin' | 'user'
export interface UserState {
  uid?: string
  name?: string
  avatar?: string
  job?: string
  organization?: string
  location?: string
  email?: string
  introduction?: string
  personalWebsite?: string
  jobName?: string
  organizationName?: string
  locationName?: string
  phone?: string
  registrationDate?: string
  accountId?: string
  certification?: number
  user?: IRootUser
  role: RoleType
  permissions: string[]
}

interface IRootUser {
  uid: string
  name: string
  nickname: string
  phone: string
  dept_id: string
  dept_name: string
  avatar: string
  email: string
  status: number
  remark: string
  is_admin: number
  job_number: number
  job_title: string
  hired_date: string
  work_place: string
  is_debug: number
  feishu_user_id: string
  feishu_open_id: string
  feishu_union_id: string
  login_at: string
  role_list: IRole_list[]
}

interface IRole_list {
  id: number
  role_id: string
  role_name: string
  staff_id: string
  staff_name: string
}
